package com.tsll.service.impl;

import com.tsll.dao.BookcommentMapper;
import com.tsll.service.BookComService;
import com.tsll.vo.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;



@Service
public class BookComServiceImpl implements BookComService {
    @Autowired
    private BookcommentMapper bookcommentMapper;
    //根据图书Id获取该图书评论信息
    public Result getComById(Integer bookId) {
        return new Result(200,"根据图书Id获取该图书评论成功",bookcommentMapper.getComs(bookId));
    }
}
